package com.example.annotation.test.myselfannotation;/*
   
/**
* @program: demo
*
* @description: 注解的原理：反射
*
* @author: kk
*
* @create: 2020-03-20 00:07
**/

import sun.security.util.ManifestEntryVerifier;

import java.lang.reflect.Method;


public class AuthFuction {

    @Auth(value = "1111")
    public static void main(String[] args) throws NoSuchMethodException {
      Class cla=  AuthFuction.class;//得到类
    Method method= cla.getMethod("main",String[].class);//得到方法

        Auth auth=    method.getAnnotation(Auth.class);//得到注解
        System.out.println(auth.value());

    }
}
